package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TestBookStuTeacherMapper;
import com.ruoyi.system.domain.TestBookStuTeacher;
import com.ruoyi.system.service.ITestBookStuTeacherService;

/**
 * 书籍学生老师关联表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-21
 */
@Service
public class TestBookStuTeacherServiceImpl implements ITestBookStuTeacherService 
{
    @Autowired
    private TestBookStuTeacherMapper testBookStuTeacherMapper;

    /**
     * 查询书籍学生老师关联表
     * 
     * @param id 书籍学生老师关联表主键
     * @return 书籍学生老师关联表
     */
    @Override
    public TestBookStuTeacher selectTestBookStuTeacherById(String id)
    {
        return testBookStuTeacherMapper.selectTestBookStuTeacherById(id);
    }

    /**
     * 查询书籍学生老师关联表列表
     * 
     * @param testBookStuTeacher 书籍学生老师关联表
     * @return 书籍学生老师关联表
     */
    @Override
    public List<TestBookStuTeacher> selectTestBookStuTeacherList(TestBookStuTeacher testBookStuTeacher)
    {
        return testBookStuTeacherMapper.selectTestBookStuTeacherList(testBookStuTeacher);
    }

    /**
     * 新增书籍学生老师关联表
     * 
     * @param testBookStuTeacher 书籍学生老师关联表
     * @return 结果
     */
    @Override
    public int insertTestBookStuTeacher(TestBookStuTeacher testBookStuTeacher)
    {
        return testBookStuTeacherMapper.insertTestBookStuTeacher(testBookStuTeacher);
    }

    /**
     * 修改书籍学生老师关联表
     * 
     * @param testBookStuTeacher 书籍学生老师关联表
     * @return 结果
     */
    @Override
    public int updateTestBookStuTeacher(TestBookStuTeacher testBookStuTeacher)
    {
        return testBookStuTeacherMapper.updateTestBookStuTeacher(testBookStuTeacher);
    }

    /**
     * 批量删除书籍学生老师关联表
     * 
     * @param ids 需要删除的书籍学生老师关联表主键
     * @return 结果
     */
    @Override
    public int deleteTestBookStuTeacherByIds(String[] ids)
    {
        return testBookStuTeacherMapper.deleteTestBookStuTeacherByIds(ids);
    }

    /**
     * 删除书籍学生老师关联表信息
     * 
     * @param id 书籍学生老师关联表主键
     * @return 结果
     */
    @Override
    public int deleteTestBookStuTeacherById(String id)
    {
        return testBookStuTeacherMapper.deleteTestBookStuTeacherById(id);
    }
}
